import {RouteRecordRaw, RouterView} from 'vue-router'

const routeName = 'user'

export const user: Array<RouteRecordRaw> = [
    {
        path: '/user',
        name: routeName,
        component: () => import(/* webpackChunkName: "user-index" */ '@/views/user/index.vue'),
        meta: {
            title: '用户管理',
        },
        children: [
            {
                path: 'list/:typeId',
                name: `${routeName}-list`,
                props: true,
                meta: {
                    title: '用户列表',
                },
                component: () => import(/* webpackChunkName: "user-list" */ '@/views/user/list/index.vue'),
            }]
    }
]
